/**
 *  用户 管理
 * @author litao
 */
import { get, post, uploadFile } from './request';

const show = { loading: true, success: true };

// 登录
export const doLogin = (params: object) => post('/regressive/auth/wechat/doLogin', params, show);

// 编辑基本信息
export const informationEdit = (params: object) => post('/regressive/emp/empjobseeker/updateBasicInfo', params, show);

// 开启信息推送
export const openMsgNotification = (params: object) => post('/regressive/auth/wechat/openMsgNotification', params, show);

// 关闭信息推送
export const closeMsgNotification = (params: object) => get('/regressive/auth/wechat/closeMsgNotification', params, show);

// 技能证书 列表
export const certificatePage = (params: object) => get('/regressive/emp/empskillscertificate/page', params);

// 技能证书 添加
export const certificateAdd = (params: object) => post('/regressive/emp/empskillscertificate/add', params, show);

// 技能证书 编辑
export const certificateEdit = (params: object) => post('/regressive/emp/empskillscertificate/edit', params, show);

// 技能证书 删除
export const certificateDelete = (params: object) => post('/regressive/emp/empskillscertificate/delete', params, show);

// 技能证书 详情
export const certificateDetail = (params: object) => get('/regressive/emp/empskillscertificate/queryCertificateDetail', params, { loading: true, success: false });

// 技能证书 附件上传
export const certificateUpload = (params : object) => uploadFile('/regressive/emp/empskillscertificate/attachmentUpload', params);

// 技能证书 附件删除
export const certificateFileDelete = (params: object) => get('/regressive/emp/empskillscertificate/attachmentDeleteById', params, show);

// 学业成绩 列表
export const gradePage = (params: object) => get('/regressive/emp/empacademicachievement/page', params);

// 学业成绩 添加
export const gradeAdd = (params: object) => post('/regressive/emp/empacademicachievement/add', params, show);

// 学业成绩 编辑
export const gradeEdit = (params: object) => post('/regressive/emp/empacademicachievement/edit', params, show);

// 学业成绩 删除
export const gradeDelete = (params: object) => post('/regressive/emp/empacademicachievement/delete', params, show);

// 学业成绩 详情
export const gradeDetail = (params: object) => get('/regressive/emp/empacademicachievement/queryAchievementDetail', params, { loading: true, success: false });

// 学业成绩 附件上传
export const gradeUpload = (params : object) => uploadFile('/regressive/emp/empacademicachievement/attachmentUpload', params);

// 学业成绩 附件删除
export const gradeFileDelete = (params: object) => get('/regressive/emp/empacademicachievement/attachmentDeleteById', params, show);

// 校内活动 列表
export const schoolActivitiesPage = (params: object) => get('/regressive/emp/empinschoolactivity/page', params);

// 校内活动 添加
export const schoolActivitiesAdd = (params: object) => post('/regressive/emp/empinschoolactivity/add', params, show);

// 校内活动 编辑
export const schoolActivitiesEdit = (params: object) => post('/regressive/emp/empinschoolactivity/edit', params, show);

// 校内活动 删除
export const schoolActivitiesDelete = (params: object) => post('/regressive/emp/empinschoolactivity/delete', params, show);

// 校内活动 详情
export const schoolActivitiesDetail = (params: object) => get('/regressive/emp/empinschoolactivity/queryActivityDetail', params, { loading: true, success: false });

// 校内活动 附件上传
export const schoolActivitiesUpload = (params : object) => uploadFile('/regressive/emp/empinschoolactivity/attachmentUpload', params);

// 校内活动 附件删除
export const schoolActivitiesFileDelete = (params: object) => get('/regressive/emp/empinschoolactivity/attachmentDeleteById', params, show);

// 校外活动 列表
export const schoolAfterActivitiesPage = (params: object) => get('/regressive/emp/empoutschoolactivity/page', params);

// 校外活动 添加
export const schoolAfterActivitiesAdd = (params: object) => post('/regressive/emp/empoutschoolactivity/add', params, show);

// 校外活动 编辑
export const schoolAfterActivitiesEdit = (params: object) => post('/regressive/emp/empoutschoolactivity/edit', params, show);

// 校外活动 删除
export const schoolAfterActivitiesDelete = (params: object) => post('/regressive/emp/empoutschoolactivity/delete', params, show);

// 校外活动 详情
export const schoolAfterActivitiesDetail = (params: object) => get('/regressive/emp/empoutschoolactivity/queryActivityDetail', params, { loading: true, success: false });

// 校外活动 附件上传
export const schoolAfterActivitiesUpload = (params : object) => uploadFile('/regressive/emp/empoutschoolactivity/attachmentUpload', params);

// 校外活动 附件删除
export const schoolAfterActivitiesFileDelete = (params: object) => get('/regressive/emp/empoutschoolactivity/attachmentDeleteById', params, show);

// 参建项目 列表
export const projectPage = (params: object) => get('/regressive/emp/empjobseekerproject/page', params);

// 参建项目 添加
export const projectAdd = (params: object) => post('/regressive/emp/empjobseekerproject/add', params, show);

// 参建项目 编辑
export const projectEdit = (params: object) => post('/regressive/emp/empjobseekerproject/edit', params, show);

// 参建项目 删除
export const projectDelete = (params: object) => post('/regressive/emp/empjobseekerproject/delete', params, show);

// 参建项目 详情
export const projectDetail = (params: object) => get('/regressive/emp/empjobseekerproject/queryProjectDetail', params, { loading: true, success: false });

// 参建项目 附件上传
export const projectUpload = (params : object) => uploadFile('/regressive/emp/empjobseekerproject/attachmentUpload', params);

// 参建项目 附件删除
export const projectFileDelete = (params: object) => get('/regressive/emp/empjobseekerproject/attachmentDeleteById', params, show);
